/**
 * @copyright Copyright 2009 Structured Solutions
 * @license http://www.codeplex.com/ShippingAgent/license Microsoft Public License (Ms-PL)
 * @version 3.2
 */

using System.Collections;

namespace StructuredSolutions.ShippingAgent
{
	/// <summary>
	/// Summary description for OrderSorter.
	/// </summary>
	public class OrderSorter : IComparer
	{
		#region IComparer Members

		public int Compare(object x, object y)
		{
			return ((OrderResult)x).Order.OrderNumber.CompareTo(((OrderResult)y).Order.OrderNumber);
		}

		#endregion
	}
}
